
$('#test').click(function (){
    console.log("addevice");
    var myDate = new Date();
    var mytime=myDate.toLocaleTimeString(); //获取当前时间
  //获取日期与时间
    $.ajax(
        {
            type: "post",
            url: "/insertDevice",
            dataType: "json",
            data: {

                DeviceId:   $("#DeviceId").val(),
                DeviceBuyer: $("#DeviceBuyer").val(),
                DeviceBuyTime: myDate.toLocaleString( ),
                DevicePlace: $("#DevicePlace").val(),
                DeviceType: $("input[name='group1']:checked").val()
            }


        }
    )
});
